home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-05-22 | 2.4 KB | 102 lines | [TEXT/R*ch] |
- ;;; This file should tweak all the warnings in the kernel,
- ;;; but not cause any fatal errors.
-
- (game-module "not-the-file-name"
- (program-version "0.0")
- )
-
- ;;; Warn about attempted modification of a constant.
-
- (set true false)
-
- ;;; Warn about an undefined table.
-
- (table foo)
-
- ;;; Warn about too long of a string.
-
- (define str2 "
- 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
- 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
- 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
- 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
- 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
- 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
- 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
- 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
- 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
- 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
- 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
- ")
-
- (print str2)
-
- ;;; Nonsensical top-level forms.
-
- 12345
-
- (burp)
-
- ;;; Including non-modules.
-
- (include)
-
- (include 0)
-
- ;;; The following definitions give us some types to work with,
- ;;; they also preventing Xconq from erroring out completely.
-
- (unit-type u1)
- (unit-type u2)
- (unit-type u3)
-
- (terrain-type t1)
- (terrain-type t2)
-
- ;;; Warn about non-matching lists.
-
- (add u* speed (0 100))
-
- ;;; Warn about trying to fill an empty list.
-
- (define xxx nil)
-
- (add xxx speed nil)
-
- ;;; Warn about incorrect table fill-in.
-
- (table acp-to-research
- (u* (u1 u2) (1 2 3 4 5 6))
- )
-
- (table acp-to-toolup
- (u* (u1 u2) ((1 2) (3 4) (5 6)))
- )
-
- (table acp-to-create ("string" 56 89))
-
- (table acp-to-create (-3 56 89))
-
- (table acp-to-create (u1 -3 89))
-
- (table acp-to-create (u1 u2 "foo"))
-
- ;;; Warn about setting a non-symbol.
-
- (set 0 2)
-
- ;;; Warn about overwriting an existing definition.
-
- (define u1 u2)
-
- (set synthesis-methods nil)
-
- (area 10 5 (terrain
- "10a"
- "10b"
- "4a2c4b"
- "10b"
- "10a"
- ))
-
-